﻿namespace TanzimSaqib.NoBrainer.Sample
{
    using System.Configuration;
    using System;
    using NoBrainer;

    public class Global : System.Web.HttpApplication
    {
        void Application_BeginRequest(Object Sender, EventArgs e)
        {
            // Required by NoBrainer
            Engine.Handle();
        }

        void Application_Start(object sender, EventArgs e)
        {
            // Ignite NoBrainer engine.
            Engine.Boot(() => new NoCache(), 
                ConfigurationManager.AppSettings["CmsXmlDirectory"], "xml", "html, htm");
        }
    }
}
